Webfetch

 

Webfetch An automated process of retrieving information from a website. Webfetch allows for seamless integration with any content management system, capable of publishing content to a URL that is accessible to PostUp. allows for seamless integration with any content management system, capable of publishing content to a URL accessible to PostUp. The common mailings that leverage Webfetch include recurring newsletters, news alerts and ongoing messages. Webfetch retrieves the content at the time of message assembly and caches it locally.

PostUp will then:

  • Retrieve the content
  • Populate any available mailing tags with recipient data
  • Assemble and send the message

You may make multiple Webfetch calls within a single message.

 

Note: Your account settings determine your level of system access. If several of the options and/ or processes outlined in this document are not available, please contact your site administrator.

 

In this document:

 

Content Requirements

Please review the following requirements prior to using the Webfetch functionality:

  • Webfetch only supports the HTTP and HTTPS protocols.
  • The content retrieved via Webfetch must be in a text/plain or text/HTML format.
  • The client must host the content on a public URL.
  • The URL can NOT be a redirect.
  • The URL can NOT be password protected, behind a firewall or on a secure server.
  • Multipart messages require two Webfetch calls: one call for the text mailing and one for the HTML.
  • Since PostUp processes the Webfetch content at the point of message assembly, the Preview and Show Message Checker options will only evaluate the mailing content that exists prior to pulling in the Webfetch content. On the other hand, PostUp will display the content captured through Webfetch when sending a test message or scheduling a mailing. Any tag/ velocity replacement or dynamic content will render based on the recipient attributes stored in PostUp.
  • If PostUp fails to retrieve the content from the URL or the HTTP status returned is not in the 200 range, the mailing will fail. In the event that the mailing fails, PostUp will alert the user responsible for creating the mailing.

Types of Webfetch

 

Leveraging the Webfetch Tags in a Mailing

  1. Once logged in, click on the Send tab.
  2. Create or edit a mailing, per normal procedure.
  3. Complete the General and Targeting tabs.
  4. Click on the Content tab.
  5. Click on the General Tags section, located with the PostUp Asset Library.
  6. Place your cursor in the HTML or Text content field in location where you want the fetched content to appear.
  7. Double click on the selected Webfetch tag. The Tag Parameters popup window will appear.
  8. Enter the page URL that hosts the content into the URL field.
  9. [Optional] Enter the character encoding into the Optional Param field. If omitted, PostUp will assume UTF-8.
  10. Click Insert Tag. The tag will automatically appear in the content field.

Content Change Verification

The following option only applies to recurring mailings using the Static Webfetch functionality. To prevent recurring mailings from sending content that has not changed since the last send time, please review the steps outlined below.

  1. Once logged in, click on the Send tab.
  2. Create or edit a mailing per normal procedure.
  3. Click on the Recurring Schedule tab.
  4. Click on the "Verify webfetch content has changed since the previous mailing prior to sending" checkbox.
  5. Click on Apply Changes.
  6. Note: Clients should use the Static Ad Fetch tag to exclude any content — such as a banner ad — from being included in the content validation check.

Webfetch HTML Best Practices

The majority of email clients support some standard of HTML and CSS; however, clients utilizing the Webfetch feature must remember that email does not render in the same manner as a webpage. When using the Webfetch feature, clients need to pull in content that is compatible with most email clients.

Please review the following recommendations in order to bypass any possible rendering issues.

  1. Embed Externally Linked CSS. Email clients, such as Hotmail and Yahoo, only preserve CSS if it exists inside the <body> tag of the message’s content. Typically, web pages include linked CSS in the <head> portion of the page.
    • Please include the linked CSS file in the email content within a <style></style> block, inside the <body> tag, or as inline CSS in the actual HTML tags. Inline CSS is highly recommended since all email clients accept inline CSS, including Gmail.
    • In addition, make sure the email is legible without CSS support. If possible, use normal HTML tags, such as <font> tags, to try and accomplish the same style. In general, utilizing normal HTML tags is a better HTML practice.
  2. Avoid Advanced CSS
    • Avoid Background Images. Although web pages may render background images with ease, email clients such as Outlook 2007, Gmail and Hotmail will disable background images by default.
    • Remove Absolute Positioning Properties. Absolute positioning is a form of CSS used for advanced layouts on web pages. Unfortunately, the majority of email clients do not support this form of CSS.
    • Remove Float Property. A float property is another form of CSS commonly used for web page layouts. Again, email clients currently do not support this property.
  3. Minimize to Body Content. After removing any linked CSS and including it in the body of the email, remove the <head> portion of the content. The <head> portion typically includes linked CSS, JavaScript, title and meta tags- all either ignored by email clients or treated as malicious code.
  4. Use Absolute Links, Not Relative Links. Make sure each URL has a fully specified path. (For example: http://www.domain.com/images/filename.jpg instead of /imagesfilename.jpg) Remember that images that render on a webpage may not render in the body of an email.
  5. Remove Flash. Email clients will likely break or block any message containing Flash.
  6. Remove JavaScript. Email clients will likely break or block JavaScript. In fact, some email clients view JavaScript as a form of malicious code.
  7. Remove Google/ 3rd Party Tracking Code. Third party tracking code will not translate into the message.
  8. Avoid Forms. Due to their erratic behavior, avoid using forms in your email. Outlook 2007, specifically, does not support the <form> tag, in addition to <input> tags. If the mailing requires a form, use a form that does not require hidden parameters.
  9. Avoid Frames/ iFrame. Some web pages will use frames or iframe to display the content of one HTML page inside of another. Email clients typically do not support frames or iframe due to the security risks with spam and viruses.